/**
 * @file: 配置用于merge而不是直接修改 不用有返回值
 * @author: v_xieyejiang
 * @Date: 2018-12-10 11:16:16
 * @Last Modified by: v_xieyejiang
 * @Last Modified time: 2019-01-16 20:14:25
 */

const execa = require('execa');
const config = require('./config');

module.exports = {
    assetsDir: 'public',

    productionSourceMap: process.env.NODE_ENV !== 'production',

    devServer: {
        port: config.port,
        proxy: null,
        before() {
            execa.shell('yarn devsh');
        }
    }
};
